package cn.tedu.imop.marketing.dao.mapper;

import cn.tedu.imop.marketing.entity.MemberCoupon;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface MemberCouponMapper {
    int insert(MemberCoupon memberCoupon);
    List<MemberCoupon> selectList(@Param("memberId")Integer memberId,
                                  @Param("status") Integer status);
    int update(MemberCoupon memberCoupon);
    MemberCoupon selectById(Integer id);

    int countMemberCoupon(@Param("memberId") Integer memberId,
                          @Param("couponId") Integer couponId,
                          @Param("couponCode") String couponCode);

}
